# Maintainer: Andreas Radke <andyrtr@archlinux.org>
# Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>

pkgbase=libreoffice-fresh-i18n

pkgver=6.1.2
pkgrel=1
_rcver=${pkgver}.1
#_oodlver=${pkgver}.0.beta1
_oodlver=${pkgver}

arch=('any')
url="http://www.documentfoundation.org"
license=('LGPL')

#https://download.documentfoundation.org/mirrors/all.html

_url="https://download.documentfoundation.org/libreoffice/stable"
#_url="https://download.documentfoundation.org/libreoffice/testing"
#_url="https://dev-builds.libreoffice.org/pre-releases"


#_url+="/${pkgver}-rc2/rpm/x86_64"
#_url+="/${pkgver}/rpm/x86_64"
_url+="/${pkgver}/rpm/x86_64"
#_url+="/rpm/x86_64"

_languages=(
  'af            "Afrikaans"               0'
  'am            "Amharic"                 1'
  'ar            "Arabic"                  1'
  'as            "Assamese (India)"        0'
  'ast           "Asturianu"               1'
  'be            "Belarusian"              0'
  'bg            "Bulgarian"               1'
  'bn            "Bengali"                 1'
  'bn-IN         "Bengali (India)"         1'
  'bo            "Tibetan"                 1'
  'br            "Breton"                  0'
  'brx           "Bodo"                    0'
  'bs            "Bosnian"                 1'
  'ca            "Catalan"                 1'
  'ca-valencia   "Catalan (Valencia)"      1'
  'cs            "Czech"                   1'
  'cy            "Welsh"                   0'
  'da            "Danish"                  1'
  'de            "German"                  1'
  'dgo           "Dogri"                   0'
  'dz            "Dzongkha"                1'
  'el            "Greek"                   1'
  'en-GB         "English (GB)"            1'
  'en-ZA         "English (ZA)"            1'
  'eo            "Esperanto"               1'
  'es            "Spanish"                 1'
  'et            "Estonian"                1'
  'eu            "Basque"                  1'
  'fa            "Persian"                 0'
  'fi            "Finnish"                 1'
  'fr            "French"                  1'
  'ga            "Irish"                   0'
  'gd            "Gaelic (Scottish)"       0'
  'gl            "Galician"                1'
  'gu            "Gujarati"                1'
  'he            "Hebrew"                  1'
  'hi            "Hindi"                   1'
  'hr            "Croatian"                1'
  'hu            "Hungarian"               1'
  'id            "Indonesian"              1'
  'is            "Icelandic"               1'
  'it            "Italian"                 1'
  'ja            "Japanese"                1'
  'ka            "Georgian"                1'
  'kk            "Kazakh"                  0'
  'km            "Khmer (Cambodia)"        1'
  'kmr-Latn      "Kurdish"                 0'
  'kn            "Kannada"                 0'
  'ko            "Korean"                  1'
  'kok           "Konkani"                 0'
  'ks            "Kashmiri"                0'
  'lb            "Luxembourgish"           0'
  'lo            "Lao"                     1'
  'lt            "Lithuanian"              1'
  'lv            "Latvian"                 1'
  'mai           "Maithili"                0'
  'mk            "Macedonian"              1'
  'ml            "Malayalam"               0'
  'mn            "Mongolian"               0'
  'mni           "Manipuri"                0'
  'mr            "Marathi"                 0'
  'my            "Burmese"                 0'
  'nb            "Norwegian Bokmal"        1'
  'ne            "Nepali"                  1'
  'nl            "Dutch"                   1'
  'nn            "Norwegian Nynorsk"       1'
  'nr            "Ndebele (South)"         0'
  'nso           "Northern Sotho"          0'
  'oc            "Occitan"                 0'
  'om            "Oromo"                   1'
  'or            "Oriya"                   0'
  'pa-IN         "Punjabi (India)"         0'
  'pl            "Polish"                  1'
  'pt            "Portuguese"              1'
  'pt-BR         "Portuguese (Brasil)"     1'
  'ro            "Romanian"                1'
  'ru            "Russian"                 1'
  'rw            "Kinyarwanda"             0'
  'sa-IN         "Sanskrit (India)"        0'
  'sat           "Santali"                 0'
  'sd            "Sindhi"                  0'
  'si            "Singhalese"              1'
  'sid           "Sidama"                  1'
  'sk            "Slovak"                  1'
  'sl            "Slovenian"               1'
  'sq            "Albanien"                1'
  'sr            "Serbian"                 0'
  'sr-Latn       "Serbian (Latin)"         0'
  'ss            "Swati"                   0'
  'st            "Southern Sotho"          0'
  'sv            "Swedish"                 1'
  'sw-TZ         "Swahili (Tanzania)"      0'
  'ta            "Tamil"                   1'
  'te            "Telugu"                  0'
  'tg            "Tajik"                   1'
  'th            "Thai"                    0'
  'tn            "Tswana"                  0'
  'tr            "Turkish"                 1'
  'ts            "Tsonga"                  0'
  'tt            "Tatar"                   0'
  'ug            "Uighur"                  1'
  'uk            "Ukrainian"               1'
  'uz            "Uzbek"                   0'
  've            "Venda"                   0'
  'vi            "Vietnamese"              1'
  'xh            "Xhosa"                   0'
  'zh-CN         "Chinese (simplified)"    1'
  'zh-TW         "Chinese (traditional)"   1'
  'zu            "Zulu"                    0'
)
validpgpkeys=('C2839ECAD9408FBE9531C3E9F434A1EFAFEEAEA3') # "LibreOffice Build Team (CODE SIGNING KEY) <build@documentfoundation.org>"
sha256sums=('aeebb7ddb0fd1a0da0f296e864cb0a6bab0e413506c237a1777689cb29ed0f78'
            'SKIP'
            '4f89a03519b4ac468206ebcee3d58bbde0e5955dff4e09b3058dfa009be31b53'
            'SKIP'
            'd8cee638f929e369568e87abb17ea9924001f7715f732c8d90ef16583bd322c0'
            'SKIP'
            '9e452091d5c26abd94f89f09f119b8001a4c0e9cbf124a99c7b92d28eb266e5f'
            'SKIP'
            '0646ad05a752197b88ec4eea39eb9b62d2d33ec7aaecef2dd81bc15c19753ea7'
            'SKIP'
            'ec88d0baeb2cdc0ab2264b420012a341b14288ed55772452d68ee16b8a7f48e2'
            'SKIP'
            'e9b5d2556d6e4debf39a08942ec5da5db6d7cbbe6742eeb0651ba02162d3ca08'
            'SKIP'
            'e29de7886be898a9812f8b838ac81db55a874a414df0c4cf52934105b774abcf'
            'SKIP'
            '4addfcf1a2bffa2b1b9c66b23890725c0a70619a8ebda374309ed974b27d9a96'
            'SKIP'
            '268e8d75dbcdd91d24557d63dfc69945d0cf80c43e6bb7ae42a265f9f3159e9d'
            'SKIP'
            'ee6bfe2d9096162631eb798153a0a26d077c7258869fe44f9e865c56cdcbe064'
            'SKIP'
            '400a58c49e4f60160bfa868edd407c3b920bb2141a3368a165bf1152a9d81424'
            'SKIP'
            'cf647716b14c98eae5766a1d4afa18326dee8e2928b7e30997e359d806c8789f'
            'SKIP'
            '49395408c78b0f30b44fbc2aba2c758749a0a1bc7859ad647512ef66ca455567'
            'SKIP'
            '05464fff3f407f8e74c7c3d9d0dfac9d028c3ee747de271fa0669dc7f999a46f'
            'SKIP'
            '25e79c10d157cd2f3b5b7a8d56eeb43502f68ad47fead7453b2f0ceda055e1b5'
            'SKIP'
            'd2a1067fb5514f80a4594652501faa3be46b2e4f9a53ec038a6fd88ea5ef0f0c'
            'SKIP'
            '9d81ed182bd3749b3f652fec4df5f0409f29cd7f296bf12c513cccfe1fd6e9a6'
            'SKIP'
            '0df386ca31d77f6d2189160c9223bcd02a1ce55ed04856a266ac3a686b2add66'
            'SKIP'
            '80eae64e1c0419e25f666444689c36d65c759b4a5e3691a9e66c8a0c5ce715ec'
            'SKIP'
            '09450891c300a073311f40e0b7b576787981f20da638e63bfb7266fd2fa3b4ba'
            'SKIP'
            '7f22683140528cf9ba8499b00e5020bdd5d11e26cbed443ab84cc787a2731b7d'
            'SKIP'
            'c9262e79650235fa9c8d0ce49607aca60eb3d0620c7671c1b4eac7a714413749'
            'SKIP'
            '1d3e9dd903e2c0c96a54b453bc710de9ff9a91de2cbd2c37c3ac31562269586f'
            'SKIP'
            '04696e435e9e8fa17b7759b318ed37c2f877e5d23631b2066b693bbfd11d4af4'
            'SKIP'
            '280e1d9702542b426e83941bc838c1401d60b36bce3142c0c9a786a47c2d084a'
            'SKIP'
            '3bb3c8cae5fa166af59f673e4e86da1f5d04264022ae79a869a15a13bceaf4d0'
            'SKIP'
            'be6b69d12e6f21b4798035bb7166053c1798a40d3a4d41227ddcde4ac5561d6b'
            'SKIP'
            '294685d27e2eab911225d62911154cfc9b1fdd42947e1d2643efbb42417354cf'
            'SKIP'
            '4f3166faff0ee37419d148b7607b57483915f8fe65fd88f4edcb19490ecc7be1'
            'SKIP'
            '3f6429346ab579982cbeef8459ef64abaebed1be6a74e6cf6fbfa3c88162af3c'
            'SKIP'
            'fc2281ad70b8ab45e3ee64d35617b72824ced99eecb2839025a4449d8d838b10'
            'SKIP'
            'eb1299bd03f21b15a39417174265d952ca293487a039979c4448d9b44a6726f4'
            'SKIP'
            'cbbfdd143cb86daaea7dcdcc6cea73ab35d6c7c513dad04cc5f94e9a10fcf8ca'
            'SKIP'
            'b33da6411c4966fa3d59a9f9ab001cbfe9bb17e47c0f76be347e230f1038952f'
            'SKIP'
            '2f8e16995ea1c166e8f24fcb1317db274aa08797170f7f6eb0b8ba9a3c2bb5f7'
            'SKIP'
            'f4b00bf802704e398bc00653d622d4e5207c544e77cc0791aa550c306f22d60c'
            'SKIP'
            'd300cc130b4b54df9a6a29bd2526b665bd4718448801732d75ec6d6b1ca41393'
            'SKIP'
            '35493d7e4264dfe249cbf8f1d38287b8da85796f8bcb2b940b3996cb58377376'
            'SKIP'
            '11afab8f0ba0ddea705717b6eeaaef0827033670ae7ce030872d62376e7a6cf2'
            'SKIP'
            '3cc74eb29a00a58f2071ca1381b4a8690a699d16788981235bd1216f2b787c10'
            'SKIP'
            'a453325aed4ae2246c720595e2ab524fcbb580934a5d4cc1ceb3e06960fe021a'
            'SKIP'
            '41be8f742534a8c65e8b2431259079bc325d7d99add8f810c506441d40635388'
            'SKIP'
            '0ec9a360d886187a9c7d3499b14cd9f42b6def5d1f851998c7a5ae6c903f57b3'
            'SKIP'
            '6e0a6c7f3446f74ea5f43a80b5df9392ddcafae4e453d664fa887852f15d6776'
            'SKIP'
            '6e7e623179c6b1ce7737435d9ce7336b79b262687c9f2b00ec9626354e1d927e'
            'SKIP'
            '8f82112f4e24df860c03e158819649e25f9e5fb5b56967e0d353fabbaacd675a'
            'SKIP'
            '48829a2f79c6b4107f2bff9b40a912eeda314c1de6f5b96322c819c160a06252'
            'SKIP'
            '9979c517a0ab70d8a82f737279f76e37be549e607d8f687c6de0d0d6c8bcc888'
            'SKIP'
            'db465ccb8275f94cb55c00449d5d81314ac543b2880a262ce8b6c6715bac7d25'
            'SKIP'
            'd0f9b0dfb7779b175bc94d74b79b87078f5964956b3fdb914834511c2d637538'
            'SKIP'
            '6d6da32fcd1c64722f042158f6216ec3a09b3e56a6302a609b0ad5750e80130a'
            'SKIP'
            '30280ebe56fcbdb4b9a9d08f17a62328797b7da90a59718e84086b04c6971a09'
            'SKIP'
            'b2010c7b006ec66aec09db3d048bbf21ba4d542c6efa1e549cfb9cd3f6d30bb1'
            'SKIP'
            'da9c2828b8add7663518ecd02db29642110d1d1bcd41a48abedefdad39662b20'
            'SKIP'
            '7a858131e9e2de06063ca76bda3846a89d0c72ab9fd6c0c52031211db57a9857'
            'SKIP'
            '87d96805ee34afa3b656c28d657543fbac054efa48d92f77811da5bf8e9b7d49'
            'SKIP'
            'ba80262fdda13a1e78367fae6c8bf8bbb694cd428185ffcdbf8789b6e85f1110'
            'SKIP'
            '326078e5d3d53d78de6a1218a8fcbe755a6d8c069b2c83f65648f6bf54c05745'
            'SKIP'
            '79b8b5dcfe7ff66ce2911ab6a09deac6d7ebda0220ac2c534a1eea75ec085407'
            'SKIP'
            'b54136519b7d096076182d73274efaf0597cfb13f4b38af48ce59a8ec4583c59'
            'SKIP'
            '46d0a7f490eefa032a8cb3c58f020929b67747411a1f663a972e253b765e119e'
            'SKIP'
            '918eb68544de49d926528abe4685196c1b443388c05d01ef9013792c5f06f3aa'
            'SKIP'
            '0d91ed4e7b736a99ef93961b6921065faad87e47625533d3d11605f04a6bd891'
            'SKIP'
            '2d213ba9736022392a4cd762720b1707c79e55c47b3dce7bf44564188ce2dd2f'
            'SKIP'
            'a43060024584ba2798689662e9ff974b964ffa8c1db8d19f04451581067aa3fd'
            'SKIP'
            '3e2c167345510c31030c1656f0273d0a457549224b2be11ddc4752614fe51263'
            'SKIP'
            '91c99ac8c7f6281302c544ee7a1bbe542c36bde754dc585c978f8d2c0563440b'
            'SKIP'
            '90fd6990db2fdf70df0cecc7bf7b33067a335d79c894e297cecdcaac328cac0b'
            'SKIP'
            '44e1181cb587a668b54b1e15802e35bdcf22f357123e20c7cfede48ca99fcca3'
            'SKIP'
            '00c87697cafa02b31a23160e4b4ec8ca5288201fd4e3cfcac048c936d30afcf0'
            'SKIP'
            'a226b4f5fa639717747125dc7bc07b209924d97a58a2be5eda9a8eee9afb8de6'
            'SKIP'
            '5c85a69e5816274e47b60f500e8022f17a24662d83a7f1cc205c597852691d15'
            'SKIP'
            'a9ae8b6e6ded82f17365ff3744db25d82370b98d608d3385d23f268b2428d80a'
            'SKIP'
            '612656ab5d3a23905c148aeeaeb68f5c639f58ed5a698c9f6ffe51a248714088'
            'SKIP'
            '0d895781828496479a0f9516de3cc4ed53475cee98f91dfd9d316946898f16f9'
            'SKIP'
            'b45e0b03df022610ca786ae281ebf40485f2abcf8f7c3159de33118b7b8e95cb'
            'SKIP'
            '6f97cef96fa36e5163b49a147fd337651843264fe6bc1977b2a06ae077370240'
            'SKIP'
            'c69102f3c0d5d487ed89a4b6e3cce7a7a6b3a91df5fce43aa339e2d67840b85c'
            'SKIP'
            '7d60170d04b881ec0e21ba95fd335a3ce9c00364ef3e062e223b9b9be5c7446c'
            'SKIP'
            '7f5cc7301e272f010e9534d795dd7ea46c0564223c43451171a26a6974fa8b12'
            'SKIP'
            'daafef1c0a356af22fd16e315be3f8ade2baaa1dc1f5554ba078bbddb1cc53a8'
            'SKIP'
            'a0543a3aebb8961a7727629c48ade40f89433c424b3527a15c97bd740edc75f4'
            'SKIP'
            '992d899402c85fb94bbbc34802962133d30cbb97253c61656a047e483bb65329'
            'SKIP'
            '19ee827699d80b0e98f2320a39cd14b7fd162e0648e2848da6985d0a20cef2b7'
            'SKIP'
            '8e85286246e271a43db29cc385ca9f2b4a50341a4de87cf75367870adfb26dbb'
            'SKIP'
            'c0bf5f9c26f4bd05be8e7d885b3569c611ad6410625de37e28f0c14bcb6864b8'
            'SKIP'
            'c5e02e8c6cc244f4e7909d9c86d16612d8055b41c2e46ec1e6adf6fbcce1c112'
            'SKIP'
            'bfb9b248af94f27bfd3a27e3d0b47e56d51a1e7599ee9cce65948c6ee3d5c3b2'
            'SKIP'
            'b48e78ed46fe6c7aea6df43ae0616fb1f306a64c48dba675d507c7496f73fb7c'
            'SKIP'
            'db1dd7cb2901da59a585114d7a3b8921691c092e92f0e48b6b02beab0d109a4a'
            'SKIP'
            '7e6722aff3eb598733a8ff6f889e75b2e19f63c01e68d92e81e9924cbbe41fe7'
            'SKIP'
            '76d59c22dacb28fd602d070adb3b043b36fceb7d3e7c21507068396c4b77f5b4'
            'SKIP'
            '12af1bbb9c3ed16a609467846be732fe576b3c363add4e8e01d86c1617f946b4'
            'SKIP'
            'b07fb1bbbeea1a40bbe8a74d906285146224cbbedaa50a69d198bd38267f8b81'
            'SKIP'
            '9593903d83746312e2bc2ff240aed508f1a53fc9f60b77b039e70ddb30c26f5c'
            'SKIP'
            'c960eeaa92319c1cc366c3c915cabea9a82e33106956b93c6226617010b60547'
            'SKIP'
            '1693ead53dbefcdc6a49fe59286c660aaf5fe822269bfb8900d4fb0a49f7acd0'
            'SKIP'
            'dd7d4330a8c9976edb9a44649afa3c5fe294d12b424d180915af8a943ac72eca'
            'SKIP'
            '5da18d0dadce9b918c712e4f3172d7aa9d80b414bd4f3b0795279896e6544e70'
            'SKIP'
            '937780078351acfd07751c3fcf60ff938a0672ee631e665dd6c55a7357113a1e'
            'SKIP'
            '6ab1d5ed0b2f1aeaa443bb5c77e0d03f1d65c9b9857a55e06167dcd16018b939'
            'SKIP'
            '1bea3d177424a2531d753b1c67274be69f025eb00ad58ac3d227abb2f69f77cf'
            'SKIP'
            'ad89052b7561e203621b159b9e54aada81c1b6befab05bd97fd99e8b00e3841a'
            'SKIP'
            '8565320a22d6789162ccbcc4d11e62f0690974680e91cfbb30d34a7ca7e74576'
            'SKIP'
            'eb9a53819101f3a58810cd48a4c53fd5923227ad73cb0d30cb939cdb46266947'
            'SKIP'
            '716b5026d2632cbe27a180bd6f24b5666764dd7e968363f8a50f66bcb150f53d'
            'SKIP'
            '08992afcfaaab38afcf16cd16e5c704ac130fe4dbddb97bd387fafddbdbb6f28'
            'SKIP'
            'a53f737020528fb2d338cadb88fc72487caaedaaf456adab83f39f4a0954d244'
            'SKIP'
            '4f0c3cf1b1c6a4d8cd1f481206502403a8012fdc8f54fc24b0f8cd9aca3c7e01'
            'SKIP'
            '54b867b45fffb7ccc1ab6ae47b565ffcd2846b943b7764175d285d6c7c7ed9b0'
            'SKIP'
            'b3990090a61d4a29ba804a232f6349c22592b6885e710844f1581f0c01a84e93'
            'SKIP'
            '01f1dbc21f6daffd8e18d4106a6a23f1e9351a3e6530276bdb926ffa974cf529'
            'SKIP'
            'cf8e6cd53d91cbf458d6a2a7ab8dfeed999f515fdff402cb50acd1f722500fef'
            'SKIP'
            '9720755eb16d2310e22b1c141ce1484d0340c2d4a4c2e2e085627b0fface4c62'
            'SKIP'
            '7a5a5123bccc8597851c08ed5e71b5ba8165e533ad90f03d56bd95b432ec8f50'
            'SKIP'
            '1852f2848c69e6f9ba6ee4ec6454f3e4b2143db84be4efd879eb8a67f90b153a'
            'SKIP'
            'c7950d211a91a75c5241fc3837cb4f4f2e853ecd883a22864f13b35c45463945'
            'SKIP'
            'dcb3061fca157f390f9108f59778bf2b3663c3a6e1a70abea31c9b85195d82da'
            'SKIP'
            '308a2b311cce590baff345cdacde295939ff3c239f63109115c12391e6246d14'
            'SKIP'
            '61efc963f4aab402a8cbe2619ccb3c077edb4f4e592294fa75be9b80355f8bcc'
            'SKIP'
            '7161501291bb483856397e076210fb6636fe876fa2905cc5485c9ead0ff144f8'
            'SKIP'
            'b7051802d9e22d4896c34f6ae421f5ca585a4ee1b3598b7871eb180ceee8315d'
            'SKIP'
            '67e2bf281fdc81be98af960e6ca509c80a9e1c0aa90c76b382c44265439ea384'
            'SKIP'
            'b0e1924f7db380b7cb050ea145cd2a28048d0a869b6fb4ec45115890f75a00f3'
            'SKIP'
            'e0289b3743355d744b5831cb95e8c50407302099d56cbf64ed37605bccf262b1'
            'SKIP'
            '17dd5d7e6184378a7e7570eebe9e1c0fd2ae1882a36f852e3abd533d0aa93f8d'
            'SKIP'
            '33e4143dadd574fde5dcfad3386c609af8f711bb89e2d2f8b0fbba85e77807a9'
            'SKIP'
            '2e317f258ef475d8797f3a517fa1d122ea31547077696588600de1d9709dd64b'
            'SKIP'
            '3432a45f790ff05dab3243531f92a0b397395819015e36624b3a4535e5acbad8'
            'SKIP'
            '4da32ebdc2dc3bf57e60442afbd1cbb78c0d4d0cebeb1163c68e76c6a9fd999c'
            'SKIP'
            'ec72754c17c5c5bc12ed796bd312de3dcfab00ba8f67754a6846fd7ed5c310a0'
            'SKIP'
            '8ea127283db379490180694a28bfc80604f67e3edf1930d4a98026cf2da06f15'
            'SKIP'
            '93f57bce5f92411b5e78fbdc8cd20102f740d2f89ebab2fabd819f5c6a5b2ccc'
            'SKIP'
            '5ce8680f87304a83d02cfeb355f8f097ea6e238470111b19564c355162618196'
            'SKIP'
            '561480156069bc7a800cc6d5993d56f12eedcf74e8778d8606ce776519d1953d'
            'SKIP'
            '66a83edf9587ad51a24081797849f1f56e5c2ae6b776b3ee4a22fcb766b059a9'
            'SKIP'
            '4163679640e2b85651961c97c58fb8f432d8854fb866a9004f1d2dcc7efc9f76'
            'SKIP'
            '1bfdf6b5cdd38b1f0c30c696c3fe4f440614f7c69ea482f22e80d82ff5e949fd'
            'SKIP'
            '8b3a59ee17024f4b9751e39e7c035c664ead8597e97c634c96b10cb892861623'
            'SKIP'
            'db2da75ca68cac0e55a038433bedd38405310f75b979535c97afa280fb92a481'
            'SKIP'
            'd06429ed9575bdff8a6d06dba7addce92d96929a016027830076436d51f48b1b'
            'SKIP'
            '3797c64755022a5442a7eec63cf63cd716bac949edf5d3afc2d7ef6a9c9f86ff'
            'SKIP'
            '6e086281a40507cd9d6d5fd734a6162749e0cbb598b77b319e758a299df707cd'
            'SKIP'
            '86386c96a5fe1d56e959bbda1fa08457b126123d2ed9a160a31c126e6c6413b6'
            'SKIP'
            'c3ff2c748a269f7987e5d42be83e8b2dd7f395a07a26c70b3af3832ce17ebb0e'
            'SKIP'
            '502e2422745198ea00fc057e7fda5e579fab83b48d41213f122e7cb23f9a0149'
            'SKIP'
            '194eef2295c8bbd3787e3487b12ccf12ed09998119ebba7690072aecae836f79'
            'SKIP'
            '4d559ae574dbaf21b2dd0739d5c80192113c518b0ad3e3386a75fce76b155880'
            'SKIP'
            '76e20d854a67cfea9f953a228e87ed07126434ed8b9546ceab6bc44b9864df99'
            'SKIP'
            '6e205dded1cd45940d1074ad6f5502544a3b0c5094329aa495fa4874902c2124'
            'SKIP'
            'd29899d98c59e2688163970b74e96994bbeda5e990a3952b222fd29c40b86f24'
            'SKIP'
            '5f7dbd49de42874b005c58a1b4ed892f529f26e7077455380ffc0624e447c103'
            'SKIP'
            'a93803adc58cf16b1ab7b8f22d17a50c58ef2793bd62150e11eae31f31db5237'
            'SKIP'
            '97a9eac6f887e4a88066f22aea535fc8e640903bd9f2d013bb77eab101faab1c'
            'SKIP'
            'f1120e766bd480a5392090b3024ff9cecb2873333356ca2c7b3342a2852bbbf5'
            'SKIP'
            '3eb18639291c8ec9c20fcb535b3b51f4e375260775c9cc97766a6724a3c7c826'
            'SKIP'
            'a968e5d8efb74fc580ca9d38e3495686d146be02df860a7fb9d5dc381a222e3b'
            'SKIP'
            '38a391bcdffc11f4697b47648b79e796dbd66625d7e3e8736e5e917f3370fcd7'
            'SKIP'
            '47577fac9f9cb6be0602274349a60d2fb9a9a88ae46aa152a55de0bd9d1b4e14'
            'SKIP'
            '1889fa93c798ec9d049c4adda41b07182d9b9d01f9848cc77fa059e7a27766d8'
            'SKIP'
            '5972426fbef233a4d44c4e6c43685c41b93eacea915556bba33e3d4441dac82e'
            'SKIP'
            '9330ae1fb0d78c65db6f3a52f3798005e5a48b846e6289e002a875f541b65600'
            'SKIP'
            '414e2c9663f2f81f5cd95d6cf33836b86b0561480f641fdce142b0749f7cda72'
            'SKIP'
            'ec4dc6367d151efb6a0d2d2452d754959ad41b8add630d60b230dbb306eef2f2'
            'SKIP'
            'f59f4255972e3542b29d2420c898df6bba957d0aec26e93be094c9c1053bb401'
            'SKIP'
            'f3b79d2400030af80c3b56b533fd053b889538515eea4b381b34bcbbd5678043'
            'SKIP'
            '1ab1d29c709071a7e12da5ac0371f301f447c1a55444061cc7d62379ff668234'
            'SKIP'
            '9d852fafac70fdf8b324e2d3e84148055d84cc70c9d9f74bb0772af6c3f7c6c8'
            'SKIP'
            '5a91c80bc90fa87e895ed661fb159c487e2c19abdcf53bd1b0bac24faac0c7a2'
            'SKIP'
            'f8a874641461a9bd5d20d3cf5515e5bcf383d079e744db705233ec7b098d58d6'
            'SKIP'
            '977fcecb7416904f36edbbc2b2dba1d921634c3f9d9f7fc5d9ca835136e49156'
            'SKIP'
            '771e683f0643633f706792b953c891feb42c7ab70cdd2360493cafc2dbd01dae'
            'SKIP')

prepare() {
  for _lang in "${_languages[@]}"; do
    declare -a "_langa=($_lang)"
    _locale="${_langa[0]}"
    _helppack="${_langa[2]}"

    echo ${_locale} " unpacking..."
    cd "${srcdir}"/LibreOffice_${_rcver}_Linux_x86-64_rpm_langpack_${_locale}/RPMS

    # remove dictionaries if shipped - we ship them now in separate packages
    rm -vf *-dict-*.rpm || /bin/true

    for j in *.rpm
      do bsdtar -x -f $j
    done

    # the helppack rpm goes also into the langpack dir
    if (( $_helppack )); then
      bsdtar -x -f "${srcdir}"/LibreOffice_${_rcver}_Linux_x86-64_rpm_helppack_${_locale}/RPMS/*.rpm
    fi
  done
}

_package() {
  pkgdesc="$2 language pack for LibreOffice Fresh"
  depends=('libreoffice-fresh')
  provides=("libreoffice-$1")
  conflicts=("libreoffice-$1")
  if [[ $1 != ${1,,} ]]; then
    replaces=(libreoffice-fresh-$1)
  fi

  cd "$srcdir"/LibreOffice_${_rcver}_Linux_x86-64_rpm_langpack_$1/RPMS
  mkdir -p "$pkgdir"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "$pkgdir"/usr/lib/libreoffice
  chown root:root -R "$pkgdir"/usr/lib/libreoffice
}

for _lang in "${_languages[@]}"; do
  declare -a "_langa=($_lang)"
  _locale="${_langa[0]}"
  _helppack="${_langa[2]}"
  _pkgname=libreoffice-fresh-${_locale,,}

  pkgname+=($_pkgname)
  source+=(${_url}/LibreOffice_${_oodlver}_Linux_x86-64_rpm_langpack_${_locale}.tar.gz{,.asc})

  if (( $_helppack )); then
    source+=(${_url}/LibreOffice_${_oodlver}_Linux_x86-64_rpm_helppack_${_locale}.tar.gz{,.asc})
  fi

  eval "package_${_pkgname}() {
    _package $_lang
  }"
done
